inherited frmProductBill: TfrmProductBill
  Left = 328
  Top = 81
  Caption = 'frmProductBill'
  ClientHeight = 451
  KeyPreview = False
  ExplicitHeight = 522
  PixelsPerInch = 119
  TextHeight = 12
  inherited pnlDBCtrl: TPanel
    Height = 353
    ExplicitHeight = 353
    DesignSize = (
      1008
      353)
    inherited pnlThirdtrade: TPanel
      inherited lblTTtraderid: TcxLabel
        AnchorX = 78
      end
      inherited cxLabel1: TcxLabel
        Left = 235
        ExplicitLeft = 235
        AnchorX = 263
      end
      inherited lblTTBalanceid: TcxLabel
        Left = 419
        ExplicitLeft = 419
        AnchorX = 471
      end
    end
    inherited DtlPageCtrl: TcxPageControl
      Height = 258
      ExplicitHeight = 258
      ClientRectBottom = 258
      inherited tabMain: TcxTabSheet
        ExplicitHeight = 258
        inherited DtlGrid: TcxGrid
          Height = 258
          OnActiveTabChanged = DtlGridActiveTabChanged
          ExplicitHeight = 258
          inherited DtlGridDBTableView: TcxGridDBBandedTableView
            OptionsBehavior.ImmediateEditor = False
            inherited DtlGridDBTableViewColumn1: TcxGridDBBandedColumn
              Position.ColIndex = 7
            end
            object colP_Code: TcxGridDBBandedColumn
              DataBinding.FieldName = 'p_code'
              Visible = False
              HeaderAlignmentHorz = taCenter
              Position.BandIndex = 0
              Position.ColIndex = 5
              Position.RowIndex = 0
            end
            object colP_Name: TcxGridDBBandedColumn
              DataBinding.FieldName = 'p_name'
              Visible = False
              HeaderAlignmentHorz = taCenter
              Position.BandIndex = 0
              Position.ColIndex = 0
              Position.RowIndex = 0
            end
            object colP_Spec: TcxGridDBBandedColumn
              DataBinding.FieldName = 'p_spec'
              Visible = False
              HeaderAlignmentHorz = taCenter
              Position.BandIndex = 0
              Position.ColIndex = 1
              Position.RowIndex = 0
            end
            object colProductid: TcxGridDBBandedColumn
              DataBinding.FieldName = 'productid'
              PropertiesClassName = 'TcxLookupComboBoxProperties'
              Properties.ImmediatePost = True
              Properties.ListColumns = <>
              HeaderAlignmentHorz = taCenter
              Position.BandIndex = 0
              Position.ColIndex = 2
              Position.RowIndex = 0
            end
            object colUnitname: TcxGridDBBandedColumn
              Caption = #19994#21153#21333#20301
              DataBinding.FieldName = 'unitname'
              PropertiesClassName = 'TcxComboBoxProperties'
              HeaderAlignmentHorz = taCenter
              Width = 50
              Position.BandIndex = 0
              Position.ColIndex = 6
              Position.RowIndex = 0
            end
            object colQuantity: TcxGridDBBandedColumn
              DataBinding.FieldName = 'quantity'
              HeaderAlignmentHorz = taCenter
              Position.BandIndex = 0
              Position.ColIndex = 3
              Position.RowIndex = 0
            end
            object colbQuantity: TcxGridDBBandedColumn
              DataBinding.FieldName = 'bquantity'
              Visible = False
              HeaderAlignmentHorz = taCenter
              Position.BandIndex = 0
              Position.ColIndex = 4
              Position.RowIndex = 0
            end
          end
          object viewGather: TcxGridDBBandedTableView [1]
            OnMouseDown = viewGatherMouseDown
            Navigator.Buttons.CustomButtons = <>
            OnCustomDrawCell = viewGatherCustomDrawCell
            DataController.DataSource = dsGather
            DataController.Options = [dcoAssignGroupingValues, dcoAssignMasterDetailKeys, dcoSaveExpanding, dcoImmediatePost]
            DataController.Summary.DefaultGroupSummaryItems = <>
            DataController.Summary.FooterSummaryItems = <
              item
                Kind = skSum
                Column = viewGatherquantity
              end
              item
                Kind = skSum
                Column = viewGatheramount
              end
              item
                Kind = skSum
                Column = viewGatherbnocount
              end
              item
                Kind = skSum
                Column = viewGatheramount
              end
              item
                Kind = skSum
                Column = viewGatherassqty
              end
              item
                Kind = skAverage
                Column = viewGatherbprice
              end
              item
                Kind = skSum
                Column = viewGatherproductamt
              end>
            DataController.Summary.SummaryGroups = <>
            OptionsBehavior.FocusCellOnTab = True
            OptionsBehavior.FocusFirstCellOnNewRecord = True
            OptionsBehavior.GoToNextCellOnEnter = True
            OptionsBehavior.FocusCellOnCycle = True
            OptionsData.Deleting = False
            OptionsData.DeletingConfirmation = False
            OptionsData.Editing = False
            OptionsData.Inserting = False
            OptionsView.ShowEditButtons = gsebForFocusedRecord
            OptionsView.CellAutoHeight = True
            OptionsView.Footer = True
            OptionsView.GroupByBox = False
            OptionsView.GroupFooterMultiSummaries = True
            OptionsView.GroupFooters = gfAlwaysVisible
            OptionsView.Indicator = True
            OptionsView.IndicatorWidth = 25
            OptionsView.FixedBandSeparatorColor = clBackground
            OnCustomDrawIndicatorCell = viewGatherCustomDrawIndicatorCell
            OnLeftPosChanged = viewGatherLeftPosChanged
            Bands = <
              item
                FixedKind = fkLeft
              end
              item
              end
              item
                Visible = False
              end
              item
              end>
            object viewGatherp_code: TcxGridDBBandedColumn
              Caption = #32534#30721
              DataBinding.FieldName = 'p_code'
              Options.Editing = False
              Width = 80
              Position.BandIndex = 0
              Position.ColIndex = 0
              Position.RowIndex = 0
            end
            object viewGatherp_name: TcxGridDBBandedColumn
              Caption = #36135#21697#21517#31216
              DataBinding.FieldName = 'productid'
              Width = 100
              Position.BandIndex = 0
              Position.ColIndex = 1
              Position.RowIndex = 0
            end
            object viewGatherp_spec: TcxGridDBBandedColumn
              DataBinding.FieldName = 'p_spec'
              Options.Editing = False
              Width = 100
              Position.BandIndex = 0
              Position.ColIndex = 2
              Position.RowIndex = 0
            end
            object viewGatherunitname: TcxGridDBBandedColumn
              DataBinding.FieldName = 'unitname'
              Width = 40
              Position.BandIndex = 0
              Position.ColIndex = 4
              Position.RowIndex = 0
            end
            object viewGatherbaseunitname: TcxGridDBBandedColumn
              DataBinding.FieldName = 'baseunitname'
              Options.Editing = False
              Width = 40
              Position.BandIndex = 0
              Position.ColIndex = 3
              Position.RowIndex = 0
            end
            object viewGatherbquantity: TcxGridDBBandedColumn
              DataBinding.FieldName = 'bquantity'
              Options.Editing = False
              Width = 70
              Position.BandIndex = 3
              Position.ColIndex = 2
              Position.RowIndex = 0
            end
            object viewGatherquantity: TcxGridDBBandedColumn
              DataBinding.FieldName = 'quantity'
              Width = 70
              Position.BandIndex = 3
              Position.ColIndex = 3
              Position.RowIndex = 0
            end
            object viewGatherwfqty: TcxGridDBBandedColumn
              DataBinding.FieldName = 'wfqty'
              Width = 70
              Position.BandIndex = 0
              Position.ColIndex = 5
              Position.RowIndex = 0
            end
            object viewGatherbprice: TcxGridDBBandedColumn
              DataBinding.FieldName = 'bprice'
              Width = 70
              Position.BandIndex = 3
              Position.ColIndex = 0
              Position.RowIndex = 0
            end
            object viewGatherprice: TcxGridDBBandedColumn
              DataBinding.FieldName = 'price'
              Width = 70
              Position.BandIndex = 3
              Position.ColIndex = 1
              Position.RowIndex = 0
            end
            object viewGatherproductamt: TcxGridDBBandedColumn
              Caption = #36135#27454
              DataBinding.FieldName = 'productamt'
              Width = 70
              Position.BandIndex = 3
              Position.ColIndex = 29
              Position.RowIndex = 0
            end
            object viewGatheramount: TcxGridDBBandedColumn
              DataBinding.FieldName = 'amount'
              Width = 70
              Position.BandIndex = 3
              Position.ColIndex = 4
              Position.RowIndex = 0
            end
            object viewGatherbatchcode: TcxGridDBBandedColumn
              DataBinding.FieldName = 'batchcode'
              Width = 140
              Position.BandIndex = 3
              Position.ColIndex = 5
              Position.RowIndex = 0
            end
            object viewGatherassqty: TcxGridDBBandedColumn
              DataBinding.FieldName = 'assqty'
              Width = 70
              Position.BandIndex = 3
              Position.ColIndex = 6
              Position.RowIndex = 0
            end
            object viewGatherproductdate: TcxGridDBBandedColumn
              DataBinding.FieldName = 'productdate'
              Width = 75
              Position.BandIndex = 3
              Position.ColIndex = 7
              Position.RowIndex = 0
            end
            object viewGathervaliddate: TcxGridDBBandedColumn
              DataBinding.FieldName = 'validdate'
              Width = 75
              Position.BandIndex = 3
              Position.ColIndex = 8
              Position.RowIndex = 0
            end
            object viewGathercustom1: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom1'
              Width = 100
              Position.BandIndex = 1
              Position.ColIndex = 0
              Position.RowIndex = 0
            end
            object viewGathercustom2: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom2'
              Width = 100
              Position.BandIndex = 1
              Position.ColIndex = 1
              Position.RowIndex = 0
            end
            object viewGathercustom3: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom3'
              Width = 100
              Position.BandIndex = 1
              Position.ColIndex = 2
              Position.RowIndex = 0
            end
            object viewGatherbnocount: TcxGridDBBandedColumn
              DataBinding.FieldName = 'bnocount'
              Options.Editing = False
              Width = 50
              Position.BandIndex = 3
              Position.ColIndex = 28
              Position.RowIndex = 0
            end
            object viewGatherlength: TcxGridDBBandedColumn
              DataBinding.FieldName = 'length'
              Width = 70
              Position.BandIndex = 1
              Position.ColIndex = 3
              Position.RowIndex = 0
            end
            object viewGatherwidth: TcxGridDBBandedColumn
              DataBinding.FieldName = 'width'
              Width = 70
              Position.BandIndex = 1
              Position.ColIndex = 4
              Position.RowIndex = 0
            end
            object viewGatherheight: TcxGridDBBandedColumn
              DataBinding.FieldName = 'height'
              Width = 70
              Position.BandIndex = 1
              Position.ColIndex = 5
              Position.RowIndex = 0
            end
            object viewGathercustom4: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom4'
              Width = 100
              Position.BandIndex = 3
              Position.ColIndex = 9
              Position.RowIndex = 0
            end
            object viewGathercustom5: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom5'
              Width = 100
              Position.BandIndex = 3
              Position.ColIndex = 10
              Position.RowIndex = 0
            end
            object viewGathercustom6: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom6'
              Width = 100
              Position.BandIndex = 3
              Position.ColIndex = 11
              Position.RowIndex = 0
            end
            object viewGathercustom7: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom7'
              Width = 100
              Position.BandIndex = 3
              Position.ColIndex = 12
              Position.RowIndex = 0
            end
            object viewGathercustom8: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom8'
              Width = 100
              Position.BandIndex = 3
              Position.ColIndex = 13
              Position.RowIndex = 0
            end
            object viewGathercustom9: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom9'
              Width = 100
              Position.BandIndex = 3
              Position.ColIndex = 14
              Position.RowIndex = 0
            end
            object viewGathercustom10: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom10'
              Width = 100
              Position.BandIndex = 3
              Position.ColIndex = 15
              Position.RowIndex = 0
            end
            object viewGathercustom11: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom11'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 16
              Position.RowIndex = 0
            end
            object viewGathercustom12: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom12'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 17
              Position.RowIndex = 0
            end
            object viewGathercustom13: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom13'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 18
              Position.RowIndex = 0
            end
            object viewGathercustom14: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom14'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 19
              Position.RowIndex = 0
            end
            object viewGathercustom15: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom15'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 20
              Position.RowIndex = 0
            end
            object viewGathercustom16: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom16'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 21
              Position.RowIndex = 0
            end
            object viewGathercustom17: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom17'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 22
              Position.RowIndex = 0
            end
            object viewGathercustom18: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom18'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 23
              Position.RowIndex = 0
            end
            object viewGathercustom19: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom19'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 24
              Position.RowIndex = 0
            end
            object viewGathercustom20: TcxGridDBBandedColumn
              DataBinding.FieldName = 'custom20'
              Width = 60
              Position.BandIndex = 3
              Position.ColIndex = 25
              Position.RowIndex = 0
            end
            object viewGatherproductpic: TcxGridDBBandedColumn
              DataBinding.FieldName = 'productpic'
              Width = 75
              Position.BandIndex = 3
              Position.ColIndex = 26
              Position.RowIndex = 0
            end
            object viewGatherexplan: TcxGridDBBandedColumn
              Caption = #35828#26126
              DataBinding.FieldName = 'explan'
              Width = 100
              Position.BandIndex = 3
              Position.ColIndex = 27
              Position.RowIndex = 0
            end
          end
          object lvlGather: TcxGridLevel
            Caption = #36135#21697#26126#32454#27719#24635
            GridView = viewGather
            Visible = False
          end
        end
      end
      object tsSum: TcxTabSheet
        Caption = #21512#24182
        ImageIndex = 1
        TabVisible = False
      end
    end
    inherited imgCheck: TcxImage [8]
      TabOrder = 6
    end
    inherited imgAbate: TcxImage [9]
    end
    inherited dynlblCreate_by: TcxLabel
      AnchorX = 221
    end
    inherited dynlblCheck_by: TcxLabel
      AnchorX = 429
    end
    inherited dynlblFilid: TcxLabel
      AnchorX = 88
    end
    inherited dynlblDeptid: TcxLabel
      AnchorX = 301
    end
    inherited dynlblEmpid: TcxLabel
      AnchorX = 505
    end
    inherited dynlblBKind: TcxLabel
      AnchorX = 149
    end
  end
  inherited pnlTop: TPanel
    inherited btnPrint: TcxButton
      Left = 755
      OnClick = mnuPrintClick
      ExplicitLeft = 755
    end
  end
  inherited pnlBottom: TPanel
    Top = 397
    ExplicitTop = 397
    object lblDepotQty: TcxLabel [0]
      Left = 7
      Top = 0
      Anchors = [akLeft, akTop, akRight]
      AutoSize = False
      Caption = #24403#21069#24211#23384#25968#37327
      ParentFont = False
      Style.Font.Charset = GB2312_CHARSET
      Style.Font.Color = clWindowText
      Style.Font.Height = -13
      Style.Font.Name = #23435#20307
      Style.Font.Style = []
      Style.IsFontAssigned = True
      Visible = False
      Height = 53
      Width = 717
    end
    inherited btnDraft: TcxButton
      TabOrder = 9
    end
  end
  inherited MainDataSource: TDataSource
    Left = 229
  end
  inherited ImageList1: TImageList
    Left = 16
  end
  inherited ActionList1: TActionList
    inherited SearchFind: TSearchFind [17]
    end
    inherited actAbate: TAction [18]
    end
    inherited actRelation: TAction [19]
    end
    inherited SearchReplace: TSearchReplace [20]
    end
    inherited actPriv: TAction [21]
    end
    inherited SearchFindFirst: TSearchFindFirst [22]
    end
    inherited SearchFindNext: TSearchFindNext [23]
    end
    inherited DataSetFirst: TDataSetFirst [24]
    end
    inherited actNext: TAction [25]
    end
    inherited actRelBill: TAction [26]
    end
    inherited actRelationCred: TAction [27]
    end
    inherited actDtlNew: TAction [28]
    end
    inherited actDtlCopy: TAction [29]
    end
    inherited actDtlInsert: TAction [30]
    end
    inherited actDtlDelete: TAction [31]
    end
    inherited actDtlMultiDel: TAction [32]
    end
    object actCheckRepeat: TAction [33]
      Caption = #26816#26597#37325#22797#36135#21697
      OnExecute = muCheckRepeatClick
    end
    object actNewDepotQty: TAction [34]
      Caption = #21047#26032#24211#23384#25968#37327
      OnExecute = muNewDepotQtyClick
    end
    object actProductBill: TAction [35]
      Caption = #36135#21697#19994#21153#27969#27700
      OnExecute = muProductBillClick
    end
    object actDtlDeleteZero: TAction [36]
      Caption = #21024#38500#38646#25968#37327
      OnExecute = muDtlDeleteZeroClick
    end
    object actImei: TAction [37]
      Caption = #20018#21495#31649#29702
      OnExecute = muImeiClick
    end
    object actFindProduct: TAction [38]
      Caption = #36135#21697#26597#25214
      ShortCut = 32838
      OnExecute = muFindProductClick
    end
    inherited actDynLay: TAction [39]
    end
    inherited actExport: TAction [40]
    end
    inherited DataSetLast: TDataSetLast [41]
    end
    inherited actSel: TAction [42]
    end
    inherited DataSetNext: TDataSetNext [43]
    end
    inherited actRefresh: TAction [44]
    end
    inherited DataSetPrior: TDataSetPrior [45]
    end
    inherited actExit: TAction [46]
    end
    inherited actDtlBillMsg: TAction [47]
    end
    object actGoodPic: TAction [48]
      Caption = #36135#21697#22270#29255
      OnExecute = muGoodPicClick
    end
    inherited actBillMsg: TAction [49]
    end
    inherited actChildSave: TAction [50]
    end
    object actWeigh: TAction
      Caption = #36135#21697#31216#37325
      OnExecute = muWeighClick
    end
    object actImportProduct: TAction
      Caption = #23548#20837#21333#25454#26126#32454
      ShortCut = 16457
      OnExecute = muImportDetailClick
    end
  end
  inherited PopupMenu1: TPopupMenu
    Left = 348
    Top = 100
    object muPartImeiMst: TMenuItem [7]
      Caption = '-'
      Visible = False
    end
    object muImeiMst: TMenuItem [8]
      Caption = #20018#21495#31649#29702
      Visible = False
      OnClick = muImeiMstClick
    end
    object muImportDetail: TMenuItem [20]
      Caption = #23548#20837#21333#25454#26126#32454
      ShortCut = 16457
      OnClick = muImportDetailClick
    end
  end
  inherited pmExec: TPopupMenu
    object muProductMakeBill: TMenuItem [3]
      Caption = #26126#32454#29983#25104#19979#32423#21333#25454
      Visible = False
    end
    object muMakeBatch: TMenuItem [5]
      Caption = #25209#37327#29983#25104#25209#27425
      OnClick = muMakeBatchClick
    end
    object muWeigh: TMenuItem [6]
      Caption = #36135#21697#31216#37325
      OnClick = muWeighClick
    end
    object N16: TMenuItem [7]
      Caption = '-'
    end
  end
  inherited pmPrint: TPopupMenu
    object muPrintProduct: TMenuItem
      Caption = #25171#21360#36135#21697#26126#32454#65293#26465#30721#26631#31614
      ImageIndex = 9
      OnClick = muPrintProductClick
    end
    object muGridPartDtl: TMenuItem
      Caption = '-'
    end
    object muPrintGather: TMenuItem
      Tag = 1
      Caption = #25171#21360#36135#21697#26126#32454#27719#24635
      OnClick = muPrintGatherClick
    end
    object muPrintGatherView: TMenuItem
      Tag = 2
      Caption = #25171#21360#36135#21697#26126#32454#27719#24635#39044#35272
      OnClick = muPrintGatherClick
    end
    object muPrintGatherDesign: TMenuItem
      Tag = 3
      Caption = #25171#21360#36135#21697#26126#32454#27719#24635#35774#35745
      OnClick = muPrintGatherClick
    end
  end
  inherited dsDetail: TDataSource
    Left = 384
    Top = 293
  end
  inherited pmDetail: TPopupMenu
    inherited muDtlCopy: TMenuItem
      Visible = True
    end
    object muDtlDeleteZero: TMenuItem [4]
      Caption = #21024#38500#38646#25968#37327
      OnClick = muDtlDeleteZeroClick
    end
    object muPartImei: TMenuItem [5]
      Caption = '-'
    end
    object muImei: TMenuItem [6]
      Caption = #20018#21495#31649#29702
      OnClick = muImeiClick
    end
    inherited muCopyPart: TMenuItem [7]
    end
    object muDtlPresentMulit: TMenuItem [8]
      Caption = #36192#21697#22810#36873#26126#32454
      OnClick = muDtlPresentMulitClick
    end
    inherited muColTextCopy: TMenuItem [9]
    end
    object muDtlCopyToClipboard: TMenuItem [10]
      Caption = #22797#21046#22810#36873#26126#32454#21040#21098#36148#26495
      OnClick = muDtlCopyToClipboardClick
    end
    object muDtlPasteFromClipboard: TMenuItem [11]
      Caption = #20174#21098#36148#26495#31896#36148
      OnClick = muDtlPasteFromClipboardClick
    end
    inherited muDtlMultiDel: TMenuItem [13]
    end
    object muPartRepeat: TMenuItem [14]
      Caption = '-'
    end
    object muSamePrice: TMenuItem [15]
      Caption = #21516#19968#36135#21697#21516#19968#20215#26684
      OnClick = muSamePriceClick
    end
    object muListDepotQty: TMenuItem [16]
      Caption = #26174#31034#20840#37096#20179#24211#24211#23384
      OnClick = muListDepotQtyClick
    end
    object muAutoListDepot: TMenuItem [17]
      Caption = #33258#21160#26174#31034#24211#23384#20449#24687
      OnClick = muAutoListDepotClick
    end
    object muAutoCopyProduct: TMenuItem [18]
      Caption = #33258#21160#22797#21046#19978#19968#26465#36135#21697
      OnClick = muAutoCopyProductClick
    end
    object muAutoCheckRepeat: TMenuItem [19]
      Caption = #33258#21160#26816#26597#37325#22797#36135#21697
      OnClick = muAutoCheckRepeatClick
    end
    object muCheckRepeat: TMenuItem [20]
      Caption = #26816#26597#37325#22797#36135#21697
      OnClick = muCheckRepeatClick
    end
    object muNewDepotQty: TMenuItem [21]
      Caption = #21047#26032#24211#23384#25968#37327
      ShortCut = 8308
      OnClick = muNewDepotQtyClick
    end
    object N9: TMenuItem [22]
      Caption = '-'
    end
    object muProductBill: TMenuItem [23]
      Caption = #36135#21697#19994#21153#27969#27700
      OnClick = muProductBillClick
    end
    inherited muFindProduct: TMenuItem
      Visible = True
      OnClick = muFindProductClick
    end
    inherited muGoodPic: TMenuItem
      Visible = True
      OnClick = muGoodPicClick
    end
    inherited N15: TMenuItem
      Visible = True
    end
    object muRelationDis: TMenuItem [30]
      Caption = #24341#29992#36135#21697#25286#20998
      OnClick = muRelationDisClick
    end
  end
  inherited cxStyleRepository1: TcxStyleRepository
    PixelsPerInch = 96
    object cxGridBandedTableViewStyleSheet1: TcxGridBandedTableViewStyleSheet
      BuiltIn = True
    end
  end
  inherited dspDetail: TDataSetProvider
    Left = 276
    Top = 293
  end
  inherited cdsDetail: TClientDataSet
    Left = 332
    Top = 293
  end
  inherited dsBType: TDataSource
    Left = 72
  end
  object cdsGather: TClientDataSet [28]
    Aggregates = <>
    FieldDefs = <
      item
        Name = 'bid'
        DataType = ftInteger
      end
      item
        Name = 'bno'
        DataType = ftInteger
      end
      item
        Name = 'productid'
        DataType = ftInteger
      end
      item
        Name = 'p_code'
        DataType = ftString
        Size = 40
      end
      item
        Name = 'p_name'
        DataType = ftString
        Size = 60
      end
      item
        Name = 'p_spec'
        DataType = ftString
        Size = 60
      end
      item
        Name = 'unitid'
        DataType = ftInteger
      end
      item
        Name = 'unitname'
        DataType = ftString
        Size = 40
      end
      item
        Name = 'quantity'
        DataType = ftFloat
      end
      item
        Name = 'wfqty'
        DataType = ftFloat
      end
      item
        Name = 'price'
        DataType = ftFloat
      end
      item
        Name = 'baseunitname'
        DataType = ftString
        Size = 40
      end
      item
        Name = 'bquantity'
        DataType = ftFloat
      end
      item
        Name = 'bprice'
        DataType = ftFloat
      end
      item
        Name = 'amount'
        DataType = ftFloat
      end
      item
        Name = 'batchcode'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'relationpid'
        DataType = ftInteger
      end
      item
        Name = 'productdate'
        DataType = ftDate
      end
      item
        Name = 'validdate'
        DataType = ftDate
      end
      item
        Name = 'sign'
        DataType = ftBoolean
      end
      item
        Name = 'custom1'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'custom2'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'custom3'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'assqty'
        DataType = ftFloat
      end
      item
        Name = 'explan'
        DataType = ftString
        Size = 2000
      end
      item
        Name = 'bnocount'
        DataType = ftInteger
      end
      item
        Name = 'length'
        DataType = ftFloat
      end
      item
        Name = 'width'
        DataType = ftFloat
      end
      item
        Name = 'height'
        DataType = ftFloat
      end
      item
        Name = 'custom4'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'custom5'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'custom6'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'custom7'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'custom8'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'custom9'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'custom10'
        DataType = ftString
        Size = 200
      end
      item
        Name = 'custom11'
        DataType = ftFloat
      end
      item
        Name = 'custom12'
        DataType = ftFloat
      end
      item
        Name = 'custom13'
        DataType = ftFloat
      end
      item
        Name = 'custom14'
        DataType = ftFloat
      end
      item
        Name = 'custom15'
        DataType = ftFloat
      end
      item
        Name = 'custom16'
        DataType = ftFloat
      end
      item
        Name = 'custom17'
        DataType = ftFloat
      end
      item
        Name = 'custom18'
        DataType = ftFloat
      end
      item
        Name = 'custom19'
        DataType = ftFloat
      end
      item
        Name = 'custom20'
        DataType = ftFloat
      end
      item
        Name = 'productpic'
        DataType = ftGraphic
      end>
    IndexDefs = <>
    Params = <>
    StoreDefs = True
    AfterScroll = cdsGatherAfterScroll
    OnNewRecord = cdsGatherNewRecord
    Left = 308
    Top = 348
    object cdsGatherbid: TIntegerField
      FieldName = 'bid'
    end
    object cdsGatherbno: TIntegerField
      FieldName = 'bno'
    end
    object cdsGatherproductid: TIntegerField
      FieldName = 'productid'
      OnChange = cdsGatherproductidChange
    end
    object cdsGatherp_code: TStringField
      DisplayLabel = #36135#21697#32534#30721
      FieldName = 'p_code'
      Size = 40
    end
    object cdsGatherp_name: TStringField
      DisplayLabel = #21517#31216
      FieldName = 'p_name'
      Size = 60
    end
    object cdsGatherp_spec: TStringField
      DisplayLabel = #35268#26684
      FieldName = 'p_spec'
      Size = 60
    end
    object cdsGatherunitid: TIntegerField
      FieldName = 'unitid'
      OnChange = cdsGatherunitidChange
    end
    object cdsGatherunitname: TStringField
      DisplayLabel = #21333#20301
      FieldName = 'unitname'
      Size = 40
    end
    object cdsGatherquantity: TFloatField
      DisplayLabel = #25968#37327
      FieldName = 'quantity'
    end
    object cdsGatherwfqty: TFloatField
      DisplayLabel = #32467#31639#25968#37327
      FieldName = 'wfqty'
    end
    object cdsGatherprice: TFloatField
      DisplayLabel = #21333#20215
      FieldName = 'price'
    end
    object cdsGatherbaseunitname: TStringField
      DisplayLabel = #22522#26412#21333#20301
      FieldName = 'baseunitname'
      Size = 40
    end
    object cdsGatherbquantity: TFloatField
      DisplayLabel = #22522#26412#21333#20301#25968#37327
      FieldName = 'bquantity'
    end
    object cdsGatherbprice: TFloatField
      DisplayLabel = #22522#26412#21333#20301#21333#20215
      FieldName = 'bprice'
    end
    object cdsGatheramount: TFloatField
      DisplayLabel = #37329#39069
      FieldName = 'amount'
    end
    object cdsGatherbatchcode: TStringField
      DisplayLabel = #25209#21495
      FieldName = 'batchcode'
      Size = 2000
    end
    object cdsGatherrelationpid: TIntegerField
      FieldName = 'relationpid'
    end
    object cdsGatherproductdate: TDateField
      DisplayLabel = #29983#20135#26085#26399
      FieldName = 'productdate'
    end
    object cdsGathervaliddate: TDateField
      DisplayLabel = #26377#25928#26399
      FieldName = 'validdate'
    end
    object cdsGathersign: TBooleanField
      FieldName = 'sign'
    end
    object cdsGathercustom1: TStringField
      FieldName = 'custom1'
      Size = 200
    end
    object cdsGathercustom2: TStringField
      FieldName = 'custom2'
      Size = 200
    end
    object cdsGathercustom3: TStringField
      FieldName = 'custom3'
      Size = 200
    end
    object cdsGatherassqty: TFloatField
      DisplayLabel = #36741#21161#25968#37327
      FieldName = 'assqty'
    end
    object cdsGatherexplan: TStringField
      FieldName = 'explan'
      Size = 2000
    end
    object cdsGatherbnocount: TIntegerField
      DisplayLabel = #27719#24635#35760#24405#25968
      FieldName = 'bnocount'
    end
    object cdsGatherlength: TFloatField
      FieldName = 'length'
    end
    object cdsGatherwidth: TFloatField
      FieldName = 'width'
    end
    object cdsGatherheight: TFloatField
      FieldName = 'height'
    end
    object cdsGathercustom4: TStringField
      FieldName = 'custom4'
      Size = 200
    end
    object cdsGathercustom5: TStringField
      FieldName = 'custom5'
      Size = 200
    end
    object cdsGathercustom6: TStringField
      FieldName = 'custom6'
      Size = 200
    end
    object cdsGathercustom7: TStringField
      FieldName = 'custom7'
      Size = 200
    end
    object cdsGathercustom8: TStringField
      FieldName = 'custom8'
      Size = 200
    end
    object cdsGathercustom9: TStringField
      FieldName = 'custom9'
      Size = 200
    end
    object cdsGathercustom10: TStringField
      FieldName = 'custom10'
      Size = 200
    end
    object cdsGathercustom11: TFloatField
      FieldName = 'custom11'
    end
    object cdsGathercustom12: TFloatField
      FieldName = 'custom12'
    end
    object cdsGathercustom13: TFloatField
      FieldName = 'custom13'
    end
    object cdsGathercustom14: TFloatField
      FieldName = 'custom14'
    end
    object cdsGathercustom15: TFloatField
      FieldName = 'custom15'
    end
    object cdsGathercustom16: TFloatField
      FieldName = 'custom16'
    end
    object cdsGathercustom17: TFloatField
      FieldName = 'custom17'
    end
    object cdsGathercustom18: TFloatField
      FieldName = 'custom18'
    end
    object cdsGathercustom19: TFloatField
      FieldName = 'custom19'
    end
    object cdsGathercustom20: TFloatField
      FieldName = 'custom20'
    end
    object cdsGatherproductpic: TGraphicField
      FieldName = 'productpic'
      BlobType = ftGraphic
    end
    object cdsGatherproductamt: TFloatField
      FieldName = 'productamt'
    end
  end
  object dsGather: TDataSource [29]
    DataSet = cdsGather
    Left = 380
    Top = 349
  end
  object qryImei: TUniQuery [35]
    SQLInsert.Strings = (
      'INSERT INTO tb_productimei'
      
        '  (id, productid, imei, btype, bkind, bstate, bid, bno, depotid,' +
        ' ioflag, qtysign, create_time, update_time, check_time, explan, ' +
        'quantity, amount, dcamount'
      
        '   , relationqty, relationamt, dcrelationamt, relationimei, ioqt' +
        'y, relationbtype, relationbid, relationbno, assqty, ioassqty, re' +
        'lationassqty, imeibtype, imeibid, imeibno, imeiid)'
      'VALUES'
      
        '  (:id, :productid, :imei, :btype, :bkind, :bstate, :bid, :bno, ' +
        ':depotid, :ioflag, :qtysign, :create_time, :update_time, :check_' +
        'time, :explan, :quantity, :amount, :dcamount'
      
        '   , :relationqty, :relationamt, :dcrelationamt, :relationimei, ' +
        ':ioqty, :relationbtype, :relationbid, :relationbno, :assqty, :io' +
        'assqty, :relationassqty, :imeibtype, :imeibid, :imeibno, :imeiid' +
        ')')
    SQLDelete.Strings = (
      'DELETE FROM tb_productimei'
      'WHERE'
      '  id = :Old_id')
    SQLUpdate.Strings = (
      'UPDATE tb_productimei'
      'SET'
      
        '  id = :id, productid = :productid, imei = :imei, btype = :btype' +
        ', bkind = :bkind, bstate = :bstate, bid = :bid, bno = :bno, depo' +
        'tid = :depotid, ioflag = :ioflag, qtysign = :qtysign, create_tim' +
        'e = :create_time, update_time = :update_time, check_time = :chec' +
        'k_time, explan = :explan, quantity = :quantity, amount = :amount' +
        ', dcamount = :dcamount'
      
        ', relationqty = :relationqty, relationamt = :relationamt, dcrela' +
        'tionamt = :dcrelationamt, relationimei = :relationimei, ioqty = ' +
        ':ioqty, relationbtype = :relationbtype, relationbid = :relationb' +
        'id, relationbno = :relationbno, assqty = :assqty, ioassqty = :io' +
        'assqty, relationassqty = :relationassqty, imeibtype = :imeibtype' +
        ', imeibid = :imeibid, imeibno = :imeibno, imeiid = :imeiid'
      'WHERE'
      '  id = :Old_id')
    SQLLock.Strings = (
      'SELECT * FROM tb_productimei'
      'WITH (UPDLOCK, ROWLOCK, HOLDLOCK)'
      'WHERE'
      '  id = :Old_id')
    SQLRefresh.Strings = (
      'SELECT * FROM tb_productimei'
      'WHERE'
      '  id = :Old_id')
    SQL.Strings = (
      'select * from tb_productimei')
    CachedUpdates = True
    Options.PrepareUpdateSQL = True
    Options.SetFieldsReadOnly = False
    Options.RequiredFields = False
    Options.QueryRecCount = True
    Options.AutoPrepare = True
    AfterPost = qryImeiAfterPost
    OnNewRecord = qryImeiNewRecord
    Left = 312
    Top = 433
    object qryImeiid: TIntegerField
      FieldName = 'id'
    end
    object qryImeiproductid: TIntegerField
      FieldName = 'productid'
    end
    object qryImeiimei: TWideStringField
      FieldName = 'imei'
      Size = 200
    end
    object qryImeibtype: TIntegerField
      FieldName = 'btype'
    end
    object qryImeibkind: TSmallintField
      FieldName = 'bkind'
    end
    object qryImeibstate: TSmallintField
      FieldName = 'bstate'
    end
    object qryImeibid: TIntegerField
      FieldName = 'bid'
    end
    object qryImeibno: TIntegerField
      FieldName = 'bno'
    end
    object qryImeidepotid: TIntegerField
      FieldName = 'depotid'
    end
    object qryImeiioflag: TIntegerField
      FieldName = 'ioflag'
    end
    object qryImeiqtysign: TIntegerField
      FieldName = 'qtysign'
    end
    object qryImeicreate_time: TDateTimeField
      FieldName = 'create_time'
    end
    object qryImeiupdate_time: TDateTimeField
      FieldName = 'update_time'
    end
    object qryImeicheck_time: TDateTimeField
      FieldName = 'check_time'
    end
    object qryImeiexplan: TWideStringField
      FieldName = 'explan'
      Size = 200
    end
    object qryImeiquantity: TFloatField
      FieldName = 'quantity'
    end
    object qryImeiwfqty: TFloatField
      FieldName = 'wfqty'
    end
    object qryImeiamount: TFloatField
      FieldName = 'amount'
    end
    object qryImeirelationqty: TFloatField
      FieldName = 'relationqty'
    end
    object qryImeirelationamt: TFloatField
      FieldName = 'relationamt'
    end
    object qryImeirelationimei: TIntegerField
      FieldName = 'relationimei'
    end
    object qryImeiioqty: TFloatField
      FieldName = 'ioqty'
    end
    object qryImeiioassqty: TFloatField
      FieldName = 'ioassqty'
    end
    object qryImeirelationbtype: TIntegerField
      FieldName = 'relationbtype'
    end
    object qryImeirelationbid: TIntegerField
      FieldName = 'relationbid'
    end
    object qryImeirelationbno: TIntegerField
      FieldName = 'relationbno'
    end
    object qryImeiassqty: TFloatField
      FieldName = 'assqty'
    end
    object qryImeirelationassqty: TFloatField
      FieldName = 'relationassqty'
    end
    object qryImeiimeibtype: TIntegerField
      FieldName = 'imeibtype'
    end
    object qryImeiimeibid: TIntegerField
      FieldName = 'imeibid'
    end
    object qryImeiimeibno: TIntegerField
      FieldName = 'imeibno'
    end
    object qryImeiimeiid: TIntegerField
      FieldName = 'imeiid'
    end
    object qryImeidcamount: TFloatField
      FieldName = 'dcamount'
    end
    object qryImeidcrelationamt: TFloatField
      FieldName = 'dcrelationamt'
    end
  end
  inherited qryThirdtrade: TUniQuery
    Options.PrepareUpdateSQL = True
    Options.AutoPrepare = True
  end
  object pmGather: TPopupMenu
    Left = 584
    Top = 111
    object muDelGather: TMenuItem
      Caption = #21024#38500#26126#32454
      OnClick = muDelGatherClick
    end
    object muGatherPart1: TMenuItem
      Caption = '-'
    end
    object muGatherCopyCellText: TMenuItem
      Caption = #22797#21046#22810#36873#25968#25454#34892#20869#23481#21040#21098#36148#26495
      OnClick = muGatherCopyCellTextClick
    end
    object muGatherCopyCell: TMenuItem
      Caption = #22797#21046#21333#20803#26684#20869#23481#21040#21098#36148#26495
      OnClick = muGatherCopyCellClick
    end
  end
end
